package com.starmark.gateway.project.provider.mapper;


import com.starmark.core.framework.base.SuperMapper;
import com.starmark.gateway.project.provider.entity.GatewayAppMachine;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author starmark
 * @since 2020-01-24
 */
@Mapper
public interface GatewayAppMachineMapper extends SuperMapper<GatewayAppMachine> {


    @Delete("delete from gateway_app_machine where app_id=#{appId} ")
    void deleteMachinesByAppId(@Param("appId") String appId);


    @Select("select * from gateway_app_machine where app_id=#{appId} ")
    @ResultMap("BaseResultMap")
    List<GatewayAppMachine> getMachineListByAppId(@Param("appId")String appId);
}